package com.aggregate.pay.sanstar;

/**
 * 请求参数
 * @author Moyq5
 * @date 2017年9月29日
 */
public class Data {

	/**
	 * 商户号，长15，必填
	 */
	private String merchNo;
	/**
	 * 平台终端号
	 */
	private String terminalNo;
	/**
	 * 终端设备SN
	 */
	private String sn;
	/**
	 * 接口参数，必填，Json结构字符串
	 */
	private String data;
	/**
	 * 随机字符串，长32，必填
	 */
	private String nonce;
	/**
	 * 时间戳，必填，1970年到今天的毫秒
	 */
	private Long timestamp;
	/**
	 * 签名，长32，必填
	 */
	private String sign;
	public String getMerchNo() {
		return merchNo;
	}
	public void setMerchNo(String merchNo) {
		this.merchNo = merchNo;
	}
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public String getNonce() {
		return nonce;
	}
	public void setNonce(String nonce) {
		this.nonce = nonce;
	}
	public Long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public String getTerminalNo() {
		return terminalNo;
	}
	public void setTerminalNo(String terminalNo) {
		this.terminalNo = terminalNo;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
    @Override
    public String toString() {
        return String.format(
                "Data [merchNo=%s, terminalNo=%s, terminalSn=%s, data=%s, nonce=%s, timestamp=%s, sign=%s, getMerchNo()=%s, getData()=%s, getNonce()=%s, getTimestamp()=%s, getSign()=%s, getTerminalNo()=%s, getTerminalSn()=%s, getClass()=%s, hashCode()=%s, toString()=%s]",
                merchNo, terminalNo, sn, data, nonce, timestamp, sign, getMerchNo(), getData(), getNonce(), getTimestamp(), getSign(), getTerminalNo(), getSn(), getClass(), hashCode(),
                super.toString());
    }
    
}